﻿@model NOSDC.Areas.Admin.Models.FinalizeEventModel

@{
    ViewBag.Title = "Finalize Event";
}

<h2>Finalize</h2>
@using(@Html.BeginForm("Finalize", "Events")){
    for (var i = 0; i < Model.AttendeesCheckList.Count(); i++)
    {
        <div>
            @if (i % 2 == 0)  {
                <div style="float:left; width:315px; padding:5px;">@Html.CheckBoxFor(model => model.AttendeesCheckList[i].Checked) @Membership.GetUser(Model.AttendeesCheckList[i].ID).ToString() @Html.HiddenFor(s => s.AttendeesCheckList[i].ID)</div>
            }
            else
            {
                <div style="float:right; width:300px;padding:5px;">
                    <div style="float:left;">@Html.CheckBoxFor(model => model.AttendeesCheckList[i].Checked) @Membership.GetUser(Model.AttendeesCheckList[i].ID).ToString() @Html.HiddenFor(s => s.AttendeesCheckList[i].ID)</div>
                </div>}
        </div>
    }
    
    <input type="submit" value="Finalize Attendees" />
}